package com.insta.android.activities;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class ThemeActivity extends Activity{

	public static final String FROG_THEME = "frogs";
	public static final String SIMPS_THEME = "simpsons";
	public static final String EMO_THEME = "emoticones";
	public static final String PETS_THEME = "pets";
	public static final String BIRDS_THEME = "birds";
	public static final String FOOT_THEME = "football";
	public static final String DEFAUT_THEME = "defaut";
	
	
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.theme);
      
	}
	
	public void onClickTheme(View v) {
    	int i = 0;   	
    	int res;
    	
    	switch (v.getId()) {
		case R.id.birds:
			i=1;	
			break;
			
		//case R.id.football:
			//i=2;
			//break;
		
		case R.id.defaut:
			i=3;
			break;
			
		case R.id.emoticones:
			i=4;
			break;
		
		case R.id.frog:
			i=5;
			break;
			
		case R.id.pets:
			i=6;
			break;
			
		default:
			
			break;
		}
    	
    	if (i!=0) {
    		res = RESULT_OK;
    	}
    	else {
    		res = RESULT_CANCELED;
    	}
    	
    	
    	Intent intentRetour = new Intent();
    	intentRetour.putExtra("type_theme", i);
    	
    	setResult(res,intentRetour);
    	
    	finish();
    	
    }
	
	
}
